package com.wondertek.service.dto.app.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @description: 登陆
 * @author: qinjianhui
 * @create: 2024-07-17 10:24
 **/
@Data
public class AppAuthLoginReq {

    /*
    * 登陆类型：1-操作员；2-用户
    * */
    @NotNull(message = "login.type.not.null")
    @Schema(name = "type",description = "登陆类型：1-操作员；2-用户")
    private Integer type;

    /*
     * 邮箱/手机
     * */
    @NotBlank(message = "email.phone.not.null")
    @Schema(name = "email",description = "邮箱或手机")
    private String email;

    /*
     * 用户密码
     * */
    @NotBlank(message = "user.password.not.null")
    @Schema(name = "password",description = "用户密码")
    private String password;

}

